<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta name="renderer" content="webkit">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加附件</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body>
<div class="Wrapper">
	 <form id="prj_prd_pay_sch_d_form">
           <div class="fieldset1 tabel_col tabel_col_s clearFix noBorder">
		         <div class="fieldset1 tabel_col tabel_col_s clearFix noBorder">
                        <div class="caption">
                            <span class="title">上传附件信息 </span>
                        </div>
			           <div class="fieldBox col_100" id="fileDetail">
		                    <div class="label">资料上传</div>
		                    <div class="field">
		                    	<jsp:include page="../../system/sysUlFilesRec/sysSysUlFilesRecUpload2.jsp" flush="true" >
		                    		<jsp:param name="filePath" value="prjprdpayschd"/>
		                    	</jsp:include>
		                    	<span style="color: red">请上传相关文件至附件，否则无法发起流程！</span>
		                    	<input name="prjPrdSchDId" id="prjPrdSchDId" type="hidden" value="${id}">
		                    </div>
			           </div>
	               </div>
              </div>
        </form>
        <div class="fieldBox col_100" style="display:none;">
	        	<input id="assSchFeeDId" type="text" class="ui-textbox" value="${id}">
	    </div>
</div>
	<script>
		$(function() {
			 var ligerForm = liger.get("prj_prd_pay_sch_d_form");
		   $("#prj_prd_pay_sch_d_form").ligerForm({
                validate: true
           });
		});
		 frameElement.dialog.onCancel = function(){
			 parent.$.ligerDialog.close();
			 parent.$(".l-dialog,.l-window-mask").css("display","none"); 
		 }
		 frameElement.dialog.onSave = function(){
			 frameElement.dialog.disabledBtns();
			 var assSchFeeDId =  $("#assSchFeeDId").val();
		     var fileParams = getUploadResultParams();//获取附件上传的信息
		     parent.addFileParam(assSchFeeDId,JSON.stringify(fileParams));
             parent.$("#btn_"+assSchFeeDId).removeAttr('href');
			 parent.$.ligerDialog.close();
 			 parent.$(".l-dialog,.l-window-mask").css("display","none");
		 }
	</script>

</body>
</html>